
:focus
{
	border: 1px solid blue;
}

:required
{
	border: 1px solid green;
}

:invalid
{
	border: 1px solid red;
}